package com.zg.common.core.dao.message.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zg.common.core.dao.BaseEntity;
import com.zg.common.core.dao.ConditionType;
import com.zg.common.core.dao.QueryCondition;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/21 19:15
 */
@Data
@NoArgsConstructor
@ToString
public class MsgInfo extends BaseEntity {
    private Long id;            // 编号
    private String title;       // 标题
    private String content;     // 内容

    @QueryCondition
    private Long templateId;
    // 模板ID
    @QueryCondition
    private String sendState;      // 状态
    private String sender;      // 发送者
    private Date sendTime;      // 发送时间

    private Long configId;

    private Long bizId;

    @QueryCondition
    private Long  receiver;

    @QueryCondition
    private String  receiverAdd;

    private Date readTime;

    @TableField(exist = false)
    @QueryCondition(type = ConditionType.IN, filed = "templateId")
    private List<Long> templateIds;

}

